<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta name="apple-mobile-web-app-capable" content="no"/>
    <meta name="apple-touch-fullscreen" content="yes"/>
    <meta name="format-detection" content="telephone=no,email=no"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title></title>
    <!--
	<script type="text/javascript" src="//cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
	<script src="//cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
	-->

	<script src="__STATIC__/public/yunpay/js/jquery3.3.1.min.js"></script>
  	<script src="__STATIC__/public/yunpay/js/jquery.qrcode1.0.min.js"></script>

</head>

<body>
<div class="body" style='color:#eee;'>
    <div class="" style="text-align:center;">
        <div class="" id='qr' style="margin:40px auto;">
        </div>
    </div>

</div>


<script type="text/javascript">
    var t=JSON.parse('{$data|htmlspecialchars_decode}');
    // $('#qr').text(JSON.stringify(t));

    $().ready(function(){
        if (t.code==100) {
            $('#qr').qrcode({
                text: t.data.code_url,
                width: 160,
                height: 160,
            });
        }else{
            $('#qr').text(JSON.stringify(t));
        }
    });


</script>
</body>
</html>
